<?php $this->render("mheader.php");?>

<div class="main_box">   
    <div class="w_986 create_top_buzhou create_top_set_style"></div>
    
    <div class="w_986 plate_986">
        <div class="plate_986_bg top_bg"></div>
        <div class="plate_986_bg mid_bg">
        	<div class="style_box">
            	<ul class="style_ul" id="style_ul">
                	<li <?php if ($this->minfo['style']==0){?>class="visited"<?php }?> cssStyle="c_blue"><a href="javascript:void(0);"><img src="images/sytle_0.png" width="390" height="270" /></a></li>
                    <li <?php if ($this->minfo['style']==1){?>class="visited"<?php }?> cssStyle="c_ora"><a href="javascript:void(0);"><img src="images/sytle_1.png" width="390" height="270" /></a></li>
                    <li <?php if ($this->minfo['style']==2){?>class="visited"<?php }?> cssStyle="c_green"><a href="javascript:void(0);"><img src="images/sytle_2.png" width="390" height="270" /></a></li>
                    <li <?php if ($this->minfo['style']==3){?>class="visited"<?php }?> cssStyle="c_purple"><a href="javascript:void(0);"><img src="images/sytle_3.png" width="390" height="270" /></a></li>
                </ul>
            </div>
        	<div class="clear"></div>
            
            <div class="txt_r"><a href="<?php echo $this->baseUrl;?>/?c=meetcp&a=create3&mid=<?php echo $this->minfo['mid'];?>" class="line_bg_all btn_blue30">下一步 ▶</a></div>
        </div>
    	<div class="plate_986_bg bot_bg"></div>
    </div>
    
</div>

<?php $this->render("footer.php");?>

<script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
<script type="text/javascript">  
$('#style_ul li').click(function() {
	var css_style = $(this).attr('cssStyle');
	var css_href = 'css/' + css_style + '.css';
	var img_src = 'images/' + css_style + '/create_head_bg.png';
	$('#css_style').attr("href", css_href);
	$(this).addClass('visited').siblings('li').removeClass('visited');
	$('#head_pho_img').attr('src', img_src);

	var obj = {'c_blue':0, "c_ora" : 1, "c_green":2, "c_purple":3};

	var url = "<?php echo $this->baseUrl;?>/?c=meetcp&a=create2&mid=<?php echo $this->content['mid'];?>";
	var param = {"style":obj[css_style]};
	
	$.post(url, param, function (ret){
		if (ret.status == 0)
			alert(ret.message);
	}, "json");	
});
</script>
</body>
</html>
